﻿using System;
using Socium.Domain.Assertions.Parameters;

namespace Socium.Domain.Documents {
	[Serializable]
	public class Person {
		public Person() {
			Id = Guid.NewGuid();
		}

		public Person(Persons.Person person) {
			Assert.NotNull(person);

			Id = person.Id;
			Name = person.ToString();
		}

		public Guid Id { get; private set; }
		public string Name { get; set; }

		public override string ToString() {
			return Name;
		}
	}
}
